package ru.housewife.form;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class MonthWrapperForm {

    private Date firstDayOfMonth;
    private List<WeekWrapperForm> weeks = new ArrayList<WeekWrapperForm>(6);

    public MonthWrapperForm(Date firstDayOfMonth) {
        this.firstDayOfMonth = firstDayOfMonth;
    }

    public Date getFirstDayOfMonth() {
        return firstDayOfMonth;
    }

    public List<WeekWrapperForm> getWeeks() {
        return weeks;
    }

    public void addWeek(WeekWrapperForm week) {
        weeks.add(week);
    }

    @Override
    public String toString() {
        return "MonthWrapperForm{" +
                "firstDayOfMonth=" + firstDayOfMonth +
                ", weeks=" + weeks +
                '}';
    }
}
